Click the button get the node name of the DIV's last child node.

A P element - Second child in div

A Span element - Fourth child in div

Note: Whitespace inside elements is considered as text, and text is considered as nodes. Therefore, in this example, the first, third and fifth child of the div element is a #text node.